<%inherit file="/base.html"/>

<%def name="main_heading()">${c.division}</%def>

<%def name="content()">

<h3>
	<a href="${url(controller='org/divisions', action='index', relation='district', id=c.division.district.id)}">
		&lt;&lt; ${c.division.district}
	</a>
</h3>
<dl>
	% for employee in c.employees:
	<dt>${h.employee_link(employee)}</dt>
	<dd>
		${employee.position.name.lower()},
		% if employee.rank:
			${_('rank %s') % employee.rank}
		% else:
			${_('no rank')}
		% endif
	</dd>
	% endfor
</dl>

<h3>${_('Actions')}:</h3>
<ul>
	<li><a href="${url(controller='org/employees', action='add', relation='division', id=c.division.id)}">${_('Add employee')}</a></li>
	<li><a href="${url(controller='career/appointments', action='add', relation='division', id=c.division.id)}">${_('Add appointment')}</a></li>
	<li><a href="${url(controller='org/transfer', action='dismissal', id=c.division.id)}">${_('Transfer employees')}</a></li>
</ul>

</%def>